package com.itheima.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;


public class OrderDTO{
    //{
    //"idCard": "333111222444555666",
    //"name": "李良",
    //"orderDate": "2023-07-31",
    //"setmealId": "5",
    //"sex": "1",
    //"telephone": "13323456780",
    //"validateCode": "8640"
    //}
     private Integer id;
     private String idCard;
     private String name;
     private Date orderDate;
     private Integer setmealId;
     private String sex;
     private String telephone;
     private String validateCode;
     private Integer memberId;
     private String orderType;
     private String orderStatus;


    public OrderDTO() {
    }

    public OrderDTO(Integer id, String idCard, String name, Date orderDate, Integer setmealId, String sex, String telephone, String validateCode, Integer memberId) {
        this.id = id;
        this.idCard = idCard;
        this.name = name;
        this.orderDate = orderDate;
        this.setmealId = setmealId;
        this.sex = sex;
        this.telephone = telephone;
        this.validateCode = validateCode;
        this.memberId = memberId;
    }

    public OrderDTO(Integer id, String idCard, String name, Date orderDate, Integer setmealId, String sex, String telephone, String validateCode, Integer memberId, String orderType) {
        this.id = id;
        this.idCard = idCard;
        this.name = name;
        this.orderDate = orderDate;
        this.setmealId = setmealId;
        this.sex = sex;
        this.telephone = telephone;
        this.validateCode = validateCode;
        this.memberId = memberId;
        this.orderType = orderType;
    }

    public OrderDTO(Integer id, String idCard, String name, Date orderDate, Integer setmealId, String sex, String telephone, String validateCode, Integer memberId, String orderType, String orderStatus) {
        this.id = id;
        this.idCard = idCard;
        this.name = name;
        this.orderDate = orderDate;
        this.setmealId = setmealId;
        this.sex = sex;
        this.telephone = telephone;
        this.validateCode = validateCode;
        this.memberId = memberId;
        this.orderType = orderType;
        this.orderStatus = orderStatus;
    }

    /**
     * 获取
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     * @return idCard
     */
    public String getIdCard() {
        return idCard;
    }

    /**
     * 设置
     * @param idCard
     */
    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return orderDate
     */
    public Date getOrderDate() {
        return orderDate;
    }

    /**
     * 设置
     * @param orderDate
     */
    public void setOrderDate(Date orderDate) {
        this.orderDate = orderDate;
    }

    /**
     * 获取
     * @return setmealId
     */
    public Integer getSetmealId() {
        return setmealId;
    }

    /**
     * 设置
     * @param setmealId
     */
    public void setSetmealId(Integer setmealId) {
        this.setmealId = setmealId;
    }

    /**
     * 获取
     * @return sex
     */
    public String getSex() {
        return sex;
    }

    /**
     * 设置
     * @param sex
     */
    public void setSex(String sex) {
        this.sex = sex;
    }

    /**
     * 获取
     * @return telephone
     */
    public String getTelephone() {
        return telephone;
    }

    /**
     * 设置
     * @param telephone
     */
    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    /**
     * 获取
     * @return validateCode
     */
    public String getValidateCode() {
        return validateCode;
    }

    /**
     * 设置
     * @param validateCode
     */
    public void setValidateCode(String validateCode) {
        this.validateCode = validateCode;
    }

    /**
     * 获取
     * @return memberId
     */
    public Integer getMemberId() {
        return memberId;
    }

    /**
     * 设置
     * @param memberId
     */
    public void setMemberId(Integer memberId) {
        this.memberId = memberId;
    }

    public String toString() {
        return "OrderDTO{id = " + id + ", idCard = " + idCard + ", name = " + name + ", orderDate = " + orderDate + ", setmealId = " + setmealId + ", sex = " + sex + ", telephone = " + telephone + ", validateCode = " + validateCode + ", memberId = " + memberId + "}";
    }

    /**
     * 获取
     * @return orderType
     */
    public String getOrderType() {
        return orderType;
    }

    /**
     * 设置
     * @param orderType
     */
    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }

    /**
     * 获取
     * @return orderStatus
     */
    public String getOrderStatus() {
        return orderStatus;
    }

    /**
     * 设置
     * @param orderStatus
     */
    public void setOrderStatus(String orderStatus) {
        this.orderStatus = orderStatus;
    }
}
